<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="css/select2.css" />
</head>
<body class="body">
	
	<jsp:include page="include/top.jsp"></jsp:include>
	
	<div class="container">
	  <div class="row">
		<div class="span9">
			<form class="form-horizontal" action="toNewproject.jspx" method="post">
        <fieldset>
          <legend>开始一个新项目</legend>
          <div class="control-group">
            <label class="control-label" for="input01">项目名称</label>
            <div class="controls">
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name="proname" style="height:30px;">
              <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">项目描述</label>
            <div class="controls">
              <textarea class="span5" rows="4" name="prodesc"></textarea>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="multiSelect">负责人</label>
            <div class="controls">
              <select id="multiSelect" name="proNo1">
                <option>请选择</option>
                <c:forEach items="${userList}" var="user">
					<option value="${user.user_id}">${user.user_name}</option>
				</c:forEach>
              </select>
            </div>
          </div>
         <div class="control-group">
            <label class="control-label" for="input01">项目成员</label>
            <div class="controls">
               <select multiple="multiple"  name="proUsersId" id="e9" style="width:300px">
          			<c:forEach items="${userList}" var="user">
						<option value="${user.user_id}">${user.user_name}</option>
					</c:forEach>  
			    </select>
            </div>
          </div>
          
          <div class="form-actions">
            <button type="submit" class="btn btn-primary">保存</button>
            <button class="btn" onclick="location.back()">返回</button>
          </div>
        </fieldset>
      </form>                   	
		</div>
		<div class="span3">
			
		</div>
	  </div>
	</div>
	<script src="js/jquery.min.js"></script>
	<script src="js/select2.js"></script>
	<script>
		$(document).ready(function(){
			$("#e9").select2({
			    placeholder: "请选择项目成员"
			    //allowClear: true
			});
		});
	</script>
</body>
</html>